package com.hm.ibsm.auto;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.context.ApplicationListener;
import org.springframework.context.event.ContextRefreshedEvent;
import org.springframework.stereotype.Component;

import lombok.extern.slf4j.Slf4j;

/**
 * @author shishun.wang
 * @date 2017年2月21日 下午4:04:27
 * @version 1.0
 * @describe
 */
@Slf4j
@Component
public class ApplicationStartup implements ApplicationListener<ContextRefreshedEvent> {

	@Autowired
	@Qualifier("manageProperties")
	private ManageProperties manageProperties;

	@Override
	public void onApplicationEvent(ContextRefreshedEvent event) {
		log.info("springboot 初始化完成...");
		log.debug(manageProperties.getAuthor().toString());
	}

}
